import { ElVisibilityStatusConst, AnimateExecTimeConst } from '../../common'

export const ElVisibilityAnimateCssExecTimeMap_Name = 'ElVisibilityAnimateCssExecTimeMap'

/**
 * 元素可见性状态与 Animate.css 动画执行时机之间的映射关系
 */
export const ElVisibilityAnimateCssExecTimeMap = {
  [ElVisibilityStatusConst.BEFORE_SHOW]: AnimateExecTimeConst.BEFORE_SHOW,
  [ElVisibilityStatusConst.BEFORE_SHOW_NOT_SCROLL]: AnimateExecTimeConst.BEFORE_SHOW,
  [ElVisibilityStatusConst.SHOWED]: AnimateExecTimeConst.SHOWED,
  [ElVisibilityStatusConst.SHOWED_NOT_SCROLL]: AnimateExecTimeConst.SHOWED,
  [ElVisibilityStatusConst.BEFORE_HIDE]: AnimateExecTimeConst.BEFORE_HIDE
} as const
